package com.nuoniu.sibanyun.controller.crm.call;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nuoniu.sibanyun.common.BaseController;
import com.nuoniu.sibanyun.common.result.HttpResult;
import com.nuoniu.sibanyun.entity.crm.call.dto.CrmCallBillDto;
import com.nuoniu.sibanyun.service.crm.call.ICrmCallMinutesRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 客户管理-分钟数使用记录 前端控制器
 * </p>
 *
 * @author 白强
 * @since 2022-05-25
 */
@RestController
@RequestMapping("/crm/callMinutesRecord")
@Api(value="分钟数使用记录 ",tags={"分钟数使用记录"})
public class CrmCallMinutesRecordController extends BaseController {
    @Autowired
    private ICrmCallMinutesRecordService crmCallMinutesRecordService;

    @PostMapping("pageList")
    @ApiOperation(value = "分页查询")
    public HttpResult pageList(@RequestBody Page page) {
        return HttpResult.ok(crmCallMinutesRecordService.pageList(page));
    }
}
